using System;

namespace OracleInternal.Common
{
	internal class CachedItem<T> : IComparable
	{
		internal T m_value;

		internal long m_lastUsedCount;

		internal CachedItem(T value, long lastUsedCount)
		{
			m_value = value;
			m_lastUsedCount = lastUsedCount;
		}

		int IComparable.CompareTo(object ci)
		{
			return m_lastUsedCount.CompareTo(((CachedItem<T>)ci).m_lastUsedCount);
		}
	}
}
